package tool

import (
	"fmt"
	"time"
)

func DockerStartPrivileged() {
	fmt.Println("启动特权容器开始")
	Exec_shell("docker load < data/x86/tester.tar.gz")
	time.Sleep(2 * time.Second)
	fmt.Println(Exec_shell("docker stop privilegedContain"))
	time.Sleep(2 * time.Second)
	fmt.Println(Exec_shell("docker rm privilegedContain"))
	time.Sleep(2 * time.Second)
	fmt.Println(Exec_shell("docker run --name privilegedContain -itd --privileged --cap-add=SYS_ADMIN derekhjray/tester:1.0.3"))
	time.Sleep(5 * time.Second)
	fmt.Println("启动特权容器完成")
}
